package com.terren.statistic.db.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.terren.statistic.db.basic.BasicServiceSupportImpl;
import com.terren.statistic.db.entity.EventTopic;
import com.terren.statistic.db.entity.EventTopicStatis;
import com.terren.statistic.db.entity.TopicStatis;
import com.terren.statistic.db.service.EventTopicStatisService;


@Service("eventTopicStatisService")
public class EventTopicStatisServiceImpl extends BasicServiceSupportImpl implements EventTopicStatisService{
	
	private final String SQL_MAPPER = "eventTopicStatisMapper.";

	@Override
	public List<TopicStatis> getTopicStatis(EventTopic param) throws Exception {
		return basicDao.findForList(SQL_MAPPER+"getTopicStatis", param);
	}

	@Override
	public void addEventTopicStatis(EventTopicStatis param) throws Exception {
		basicDao.save(SQL_MAPPER+"addEventTopicStatis", param);	
	}
}